<template>
  <div>
    <h2>{{ message }}</h2>
    <h2>{{ $store.state.test.counter }}</h2>
  </div>
</template>
<script>

export default {
  name:'VuexSon',
  data() {
    return {
      message:'我是 Vuex son组件',
    }
  },
  created() {
    console.log(this.$store.state.test.counter);
  },
  mounted() {
  },
  methods: {
  }
}
</script>
<style lang="scss" scoped>
h2,h3{
  margin: 15px 0 15px 0;
}
button{
  width: 24px;
  height: 24px;
  margin-right: 5px;
}
</style>
